<?php
ob_start();
$to="solar415p@gmail.com";
$subject="Summit Air";
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$phone=$_REQUEST['phone'];
$message=$_REQUEST['message'];
$capture=$_REQUEST['capture'];
echo $msg= '<table width="750" border="0" cellspacing="0" cellpadding="0">
      

      <tr>
        <td width="350" align="left" valign="top" style="background:#108EEE; padding-left;10px;"><font color="#ffffff">Contact Information </font></td>
        <td width="50" align="left" valign="top" style="background:#108EEE;">&nbsp;</td>
        <td width="387" align="left" valign="top" style="background:#108EEE;">&nbsp;</td>
      </tr>
	  	      
	     <tr>
	       <td height="30" align="left" valign="middle" style="background:#EDEBEB;">Name</td>
	       <td height="30" align="left" valign="middle" style="background:#EDEBEB;">&nbsp;</td>
	       <td height="30" align="left" valign="middle" style="background:#EDEBEB;">'.$name.'</td>
  		</tr>
	  <tr>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">Email</td>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">&nbsp;</td>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">'.$email.'</td>
      </tr>
	  <tr>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">Phone</td>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">&nbsp;</td>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">'.$phone.'</td>
      </tr>
	  <tr>
	       <td height="30" align="left" valign="middle" style="background:#EDEBEB;">Message</td>
	       <td height="30" align="left" valign="middle" style="background:#EDEBEB;">&nbsp;</td>
	       <td height="30" align="left" valign="middle" style="background:#EDEBEB;">'.$message.'</td>
  	  </tr>
  	  <tr>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">Enter the below capture code</td>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">&nbsp;</td>
        <td height="30" align="left" valign="middle" style="background:#EDEBEB;">'.$capture.'</td>
      </tr>
	  

	   </table>';
  
	  
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"". $email ."\" <".$to.">\n";


mail($to, stripslashes($subject), stripslashes($msg), $headers) or die("Could not send e-mail - Error A46GY7");
 
$redirect = "Location:index.html";
header($redirect);
 
?>